package com.iotechn.unimall.admin.api.userShop;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.UserShopDO;
import com.iotechn.unimall.data.model.Page;

/**
 * @author hct
 * @email 77802226@qq.com
 * @date 2022-05-24 21:04:46
 */
@HttpOpenApi(group = "admin.userShop", description = "")
public interface AdminUserShopService {

    @HttpMethod(description = "列表", permission = "admin:userShop:list", permissionParentName = "项目管理", permissionName = "项目列表")
    public Page<UserShopDO> list(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;
    @HttpMethod(description = "小程序列表")
   public Page<UserShopDO> listFront(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "创建", permission = "admin:userShop:create", permissionParentName = "项目管理", permissionName = "项目列表")
    public UserShopDO create(
            @NotNull @HttpParam(name = "userShopDO", type = HttpParamType.COMMON, description = "") UserShopDO userShopDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "修改", permission = "admin:userShop:update", permissionParentName = "项目管理", permissionName = "项目列表")
    public String update(
            @NotNull @HttpParam(name = "userShopDO", type = HttpParamType.COMMON, description = "") UserShopDO userShopDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "删除", permission = "admin:userShop:delete", permissionParentName = "项目管理", permissionName = "项目列表")
    public String delete(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "删除Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "详情")
    public UserShopDO detail(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "根据二维码查看项目信息")
    public UserShopDO qrCodeDetail(
            @NotNull @HttpParam(name = "qrCode", type = HttpParamType.COMMON, description = "Id") String qrCode
           ) throws ServiceException;

    @HttpMethod(description = "激活冻结")
    public Boolean updateStatus(
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId,
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "用户信息") Long id,
            @HttpParam(name = "reason", type = HttpParamType.COMMON, description = "用户信息") String reason,
            @NotNull @HttpParam(name = "status", type = HttpParamType.COMMON, description = "用户信息") Integer status) throws ServiceException;

    @HttpMethod(description = "审核实人")
    public Boolean updateIdentityStatus(
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId,
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "用户信息") Long id,
            @HttpParam(name = "reason", type = HttpParamType.COMMON, description = "用户信息") String reason,
            @NotNull @HttpParam(name = "status", type = HttpParamType.COMMON, description = "用户信息") Integer status) throws ServiceException;

    @HttpMethod(description = "审核企业")
    public Boolean updateBusinessStatus(
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId,
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "用户信息") Long id,
            @HttpParam(name = "reason", type = HttpParamType.COMMON, description = "用户信息") String reason,
            @NotNull @HttpParam(name = "status", type = HttpParamType.COMMON, description = "用户信息") Integer status) throws ServiceException;



}

